package com.wxzz.elearing.pay.service.openfeign;

import com.wxzz.elearning.common.dto.FeignWxUserDto;
import com.wxzz.elearning.common.vo.ReturnVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("1122-wxzzlearn-user-model")
public interface IWxUserApiFeign {

    @RequestMapping(value = "/wx-user-api/selectWxUserByWxUserId", method = RequestMethod.POST)
    ReturnVO<String> selectWxUserByWxUserId(@RequestParam("wxUserId") Long wxUserId);

    /**
     * 根据微信用户id查询用户详情
     *
     * @param wxUserId
     * @return
     */
    @RequestMapping(value = "/wx-user-api/selectFeignWxUserDtoByWxUserId", method = RequestMethod.POST)
    FeignWxUserDto selectFeignWxUserDtoByWxUserId(@RequestParam("wxUserId") Long wxUserId);

    /**
     * 根据key查询平台参数
     * @param key
     * @return
     */
    @RequestMapping(value = "/platform-param-api/selectOne", method = RequestMethod.POST)
    String selectOne(@RequestParam("key") String key);
}
